home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
txtedtrs
/
qroff
/
qroff.doc
< prev
next >
Wrap
Text File
|
1995-05-02
|
3KB
|
113 lines
QROFF (1O) QROFF (1O)
SYNOPSIS
qroff - world's dumbest formatter
USAGE
qroff [file ...]
DESCRIPTION
Qroff is an upwardly mobile paragraph formatter. It was written
as a fast way to get all of the Stadel documentation into a
coherent style, and only supports the bare minimum of commands
needed to do that. It works like most other formatters - it
does its actions based on commands in the text, plus commands
in a predefined style sheet.
Qroff takes as input a free-format input and formats it into
a collection of right & left justified paragraphs. Qroff
considers blank lines in the input to be paragraph breaks
(as well as a few of the formatting commands listed below),
and lines beginning with a $ to be formatting commands.
FORMATTING COMMANDS
Formatting commands use a line of their own, and begin with
a $. In most cases, they do not cause paragraph breaks,
but just change various qroff things and continue merrily
along their way.
$include <filename>
Include this file into your document, formatted like
everything else. You may nest $includes up to 10
levels deep.
$section <level> <title>
Produces a section title; Section #'s are nestable
up to 10 levels deep, and are kept track of internally.
A section title looks like:
#.#.#.#) title
Where the #'s are the current section and subsection #'s.
Here's a brief example of sections; the following text:
$section 0 Introduction
$section 1 Synopsis
$section 1 Usage
$section 0 History
$section 1 Origins
$section 1 Evolution
produces the following output:
1) Introduction
1.1) Synopsis
1.2) Usage
2) History
2.1) Origins
2.2) Evolution.
(Notice that when we changed from section 1 to 2,
the subsection # reverted to 1)
$raw Don't process the text between this line and end
of file or a $cooked directive.
$cooked Resume formatting after a $raw
$left <margin>
Adjust or set the left margin. If you prefix the
margin with a + or -, qroff adjusts the margin by
that amount, otherwise it will set the margin to
that number. If your new margin setting is further
right than the right margin, qroff will complain
and ignore the offending command.
$right <margin>
Adjust or set the right margin. Otherwise like the
$left command.
$indent <para-indent>
Set the paragraph indent (the amount of space the
first line of a paragraph is indented past the
left margin.) You may generate "hanging" paragraphs
by setting the para-indent to a negative number.
$skip <lines>
Output a few blank lines.
$par Forces a paragraph break. Normally, paragraphs are
separated by blank lines, but there might be stylistic
reasons against that. So...
(The commands $section, $skip, and $raw also force
paragraph breaks)
STYLE SHEETS
Qroff starts up with a default configuration of
$left 4
$right 70
$indent 4
but if you don't find this to your liking, you may create style
sheets to alter the behavior of qroff. When qroff starts up,
it looks for the file STYLE.QFM in its current directory - this
file is treated as an ordinary file, and may contain any text
and formatting commands that the user desires.
AUTHOR
Orc (david parsons)